home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-05
/
swapsize.zip
/
SWAPSIZE.DOC
< prev
next >
Wrap
Text File
|
1992-04-18
|
4KB
|
113 lines
SWAPSIZE.CMD v1.1 Written by: Bob Mahan
============ November, 1991
Background
----------
As a participant in the OS/2 2.0 Early Experience Program (EEP), I
found that the OS/2 Swap file has a tendency to grow quite quickly
based on the number of applications and RAM available on any given
workstation. Due to the limited amount of fixed disk space that I
had available for the beta code, a close eye on the amount of free
space remaining was needed to insure that I didn't over extend the
virtual memory of my system. To help accomplish this, I developed
a small OS/2 REXX program.
Description
-----------
SWAPSIZE.CMD is written in REXX and provides visual feedback on the
status of disk swapping being performed by OS/2. Every second (by
default) the program queries the SWAPPER.DAT drive and file for size
information. This information is displayed in various colors (green,
yellow, and red) to indicate the status of the system swapping.
In addition, parameters can be passed to the program to change the
default amount of time spent waiting between pollings and request
polling of additional drives. Below is a syntax diagram for the
SWAPSIZE.CMD program.
>> SWAPSIZE -.--------------------.-------------> <
`- n -.------------.-'
`- drive(s) -'
Arguments: n = number of seconds to delay between querys
default of 1 display every second
drive(s) = one or more drives (x:) to monitor
default of drive with SWAPPER.DAT (5 max)
Usage
-----
Although there are many commercial products to perform various system
monitoring tasks, this program along with the PULSE program that
comes with OS/2 can be used to give a fairly good indication of the
status of the operating system. I have found that placing these two
programs along with the system clock in a corner of the screen works
effectively. Below are the steps that I perform to get the CLOCK,
SWAPSIZE, and PULSE set up.
1.) Start SWAPSIZE program as an OS/2 window with a 16x5 font
2.) Start PULSE program
3.) Start CLOCK program
Note: These first 3 steps could be automatically done
when the system is started.
4.) Move PULSE to upper right hand corner of screen and make it
just wide enough to keep the menu bar on one line.
Note: This step will only need to be done once, as the
PULSE program will remember its' position.
5.) Move CLOCK to upper right hand corner of screen and make it
the same width as PULSE and just tall enough to cover the
title and menu bar of PULSE. When this step is completed
the appearance should be a CLOCK on top with the PULSE just
below it.
Note: This step will only need to be done once, as the
CLOCK program will remember its' position.
6.) Turn off the title bar for the CLOCK to increase the window
geometry.
7.) Wait until SWAPSIZE has filled screen and begins to scroll
8.) Size SWAPSIZE to display just 1 line of window and scroll
window to one line above bottom of window
9.) Move SWAPSIZE to lower left side of the PULSE window so it
leaves about 1/4 to 1/3 of the graph visible (about 30
seconds worth)
10.) Click on the CLOCK to hide the SWAPSIZE Title bar.
These steps may seem alittle confusing so below is a very
crude drawing below.
.-------------------------------.
: 1 1 1 1 1 1 :
: 1 1 : 1 1 : 1 1 A M : <--- CLOCK
: 1 1 1 1 1 1 :
'-------------------------------'
: :** **** :
SWAPSIZE ---> : 4.2 C:6.4 D:22 : ** ** ** : <--- PULSE
: : *** :
'-----------------'-------------'
Disclaimer and other legal stuff
--------------------------------
This program can be freely copied and given to anyone. It is Public
Domain software distributed AS IS. The user of SWAPSIZE takes full
responsibility for it use and its' author cannot be held liable for
any damage caused by the use or abuse the program (however unlikely)
may cause. My only request is that it is distributed along with this
documentation.